---
sidebar_position: 10
---

import { History } from '@site/src/components/History';
import { Stability } from '@site/src/components/Stability';

# `enforce`

Ensures that the execution is valid and safe before proceeding with the tests.

<Stability
  level={2}
  message={
    <>
      From{' '}
      <strong>
        <code>3.0.0-rc.1</code>
      </strong>{' '}
      onwards.
    </>
  }
/>

<History
  records={[
    {
      version: '3.0.0',
      changes: [
        <>
          Ensure both _CLI_ flags and config file properties, including its
          values.
        </>,
      ],
    },
    {
      version: '2.5.0',
      changes: [
        <>
          <strong>CLI:</strong> add <code>enforce</code> option.
        </>,
      ],
    },
  ]}
/>

Forces an error for:

- Invalid or deprecated flags _(CLI)_ or properties _(config file)_.
- Flags with required values, but with no value.
- Invalid values (`--config`, `--envFile`, `--concurrency`).
- Flags that don't use values, but have some values in them.

## CLI

```bash
npx poku --enforce ./test
```

- Short flag: `-x`.

:::info

- This option ignores the `quiet` option.
  :::

:::danger Important
Failures due to deprecated features and options won't be considered breaking changes when using enforcement.
:::
